<?php

namespace app\admin\model\zhongzhuan\fenpei;

use think\Model;
use traits\model\SoftDelete;

class Feiyuassignkehudetail extends Model
{

    use SoftDelete;

    

    // 表名
    protected $name = 'ec_assign_feiyu_kehu_detail';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    // 追加属性
    protected $append = [

    ];
    

    
    /**
     * 关联客户表获取客户昵称
     * @return \think\model\relation\BelongsTo
     */
    public function userinfo()
    {
        return $this->belongsTo('app\admin\model\zhongzhuan\ec\Ecuser', 'user_id')->setEagerlyType(0);
    }

    public function yixianginfo()
    {
        return $this->belongsTo('app\admin\model\zhongzhuan\baiying\Yixiang','yixiang_id')->setEagerlyType(0);
    }
    







}
